package com.charm.transaction

import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.alibaba.android.arouter.facade.annotation.Route
import com.scwang.smartrefresh.layout.SmartRefreshLayout

/**
 * Created by tools on 2018/1/2.
 */
@Route(path = "/transaction/main")
class TransactionFragment : Fragment(){
    lateinit var refresh : SmartRefreshLayout
    lateinit var rv:RecyclerView
    override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        var rootView:View = inflater!!.inflate(R.layout.fragment_transaction, container, false)
        initView(rootView)

        return rootView
    }

    private fun initView(rootView: View) {
        refresh = rootView.findViewById(R.id.refresh)
        rv = rootView.findViewById(R.id.rv)

    }

    override fun onViewCreated(view: View?, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        initData()
    }

    private fun initData() {

    }
}